package com.it.you.base.bingfa.thread;

public class ThreadTest1 {

    public static void main(String[] args) {
        Thread thread = new CreateThread();
        thread.setName("线程一");
        thread.start();
        System.out.println(Thread.currentThread().getName());

    }
}

class CreateThread extends Thread{

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName()+ "正在打印：我在干啥");
    }
}
